package Demo2;

public class Text extends Thread{
    private char name;
    private int x;
    private int y;
    public Text(char name,int x,int y) {
        this.name = name;
        this.x = x;
        this.y = y;
    }


    @Override
    public void run() {
        for(int i = x; i < y;i++) {
            System.out.println(name + "运行中：" + i);
        }
    }
}
